package com.cn.entity;

import com.cn.Dao.NewsclassDao;

import java.sql.SQLException;

public class NewsInfo {
    private String num;
    private String name;
    private Integer id;
    private String pub;
    private String term;
    private String con;
    private byte[] pic;
    private Float price;
    private String path;

    public void setPath(String path){this.path=path;}

    public String getPath() { return path;}

    public byte[] getPic() {
        return pic;
    }

    public Float getPrice() {
        return price;
    }



    public String getCon() {
        return con;
    }



    public String getPub() {
        return pub;
    }

    public String getTerm() {
        return term;
    }

    public String getType() throws SQLException { return NewsclassDao.IdToName(id); }

    public void setCon(String con) {
        this.con = con;
    }

    public void setTerm(String term) {
        this.term = term;
    }

    public void setPic(byte[] pic) {
        this.pic = pic;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public void setPub(String pub) {
        this.pub = pub;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public String getNum() {
        return num;
    }
}